<template>
  <div v-format-time>1643250132</div>
</template>

<script>
import { getCurrentInstance } from "vue";
export default {
  setup(props) {
    // 从setup中拿全局的属性
    const instance = getCurrentInstance();
    console.log(instance.appContext.config.globalProperties.$name);
    console.log(instance.appContext.config.globalProperties.$fun);
  },
};
</script>

<style>
</style>
